package com.wx.tgp.designpattern.decorativePattern.PresonDecorative;

/**
 * 被装饰的对象
 */
public class Person extends Decorative{

    private String name;

    public Person(String name){
        this.name = name;
    }

    @Override
    public void Decorative() {
        System.out.println(name+"穿着：");
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
}
